package com.pan.feign;


import com.pan.entity.Goods;
import com.pan.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("goods-server")
public interface GoodsServerFeign {

    @GetMapping("/select/{goodsId}")
    public Result<Goods> selectById(@PathVariable("goodsId") Long goodsId);

}
